package com.ys.service.Impl;


import com.ys.mapper.OrderdrugcommodityMapper;
import com.ys.pojo.Orderdrugcommodity;
import com.ys.service.OrderdrugcommodityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("OrderdrugcommodityService")
public class OrderdrugcommodityServiceImpl implements OrderdrugcommodityService {
    @Resource
    private OrderdrugcommodityMapper orderdrugcommodityMapper;
    @Override
    public List<Orderdrugcommodity> finBylist(Integer id) {
        return orderdrugcommodityMapper.finBylist(id);
    }
    @Override
    public boolean addsinsert(Orderdrugcommodity orderdrugcommodity) {
        return orderdrugcommodityMapper.addsinsert(orderdrugcommodity);
    }

    /**
     * 根据订单id查询详情
     * @param orderIds  订单id
     * @return
     */
    @Override
    public List<Orderdrugcommodity> searchOrderIds(Integer orderIds) {
        return orderdrugcommodityMapper.findOrderIds(orderIds);
    }
}
